package com.bjpowernode.dstaticproxy;

/*
    你自己
 */
public class You {
    private Girl girl;

    /*
        将中间人对象传入
     */
    public You(Girl girl) {
        this.girl = girl;
    }

    /*
        交朋友
     */
    public void makeFriend(){
        girl.eat();
    }


    /*
        送礼物
     */
    public void sendGift(int count) {
        girl.receiveGift(count);
    }
}
